package thread;

class SingletonLazyr{
    private SingletonLazyr instance=null;
    Object locker=new Object();
    public SingletonLazyr getInstance() {

        while (instance == null) {
            synchronized (locker) {
                while (instance == null) {
                    instance = new SingletonLazyr();
                }

            }

        }
        return instance;
    }

    private SingletonLazyr(){ }
}


public class ThreadDemo26 {
}
